package com.milling.common.exception.hard;

import com.milling.common.utils.uuid.UUID;

public class SuspendException extends RuntimeException {
    private final String suspendToken; // 挂起任务唯一标识
    private final String message;     // 弹窗提示信息

    public SuspendException(String message) {
        this.suspendToken = UUID.randomUUID().toString();
        this.message = message;
    }

    public SuspendException(String message, String suspendToken) {
        this.suspendToken = suspendToken;
        this.message = message;
    }

    // Getters
    public String getSuspendToken() { return suspendToken; }
    public String getMessage() { return message; }
}
